package com.yonyou.pmclouds.projecttype.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yonyou.pmclouds.basecom.entity.SuperVO;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;

@Data
@Table(name = "pmbd_project_type")
public class ProjectTypeVO extends SuperVO {
    public static final String PK_PROJECT_TYPE = "pkProjectType";
    public static final String SCODE = "scode";
    public static final String SNAME = "sname";
    public static final String SRC_TYPE = "srcType";
    public static final String PK_TENANT = "pkTenant";
    public static final String PK_SRC = "pkSrc";
    public static final String PK_SRC_ORG = "pkSrcOrg";
    public static final String ENABLE_STATUS = "enableStatus";
    public static final String PK_PARENT="pkParent";
    public static final String PK_ROOT="pkRoot";
    @Id
    private String pkProjectType;

    private String scode;

    private String sname;
    //来源类型

    private String srcType;
    //来源租户
    private String pkTenant;
    //来源ID

    private String pkSrc;
    //来源组织

    private String pkSrcOrg;
    //启用状态

    private Integer enableStatus;
    private String creator;
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date creationtime;
    private String modifier;
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date modifytime;

    @Transient
    private String pcode;//存储父节点的编码
    @Transient
    private ProjectTypeVO[] projectTypeVOS;//包含的子节点

    private String pkParent;//父类别ID
    private String pkRoot;//根类别ID

    public interface OutterValid {
    }
}
